package com.qidianit.mes.pro.mapper;

import com.qidianit.mes.pojo.pro.Process;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description:
 * @Author: shanzhe
 * @Date: 2025/9/17 - 13:39
 */
@Mapper
public interface ProcessMapper {
    ArrayList<Process> queryProcessListByPageAndCondition(@Param("processCode") String processCode,
                                                          @Param("processName") String processName,
                                                          @Param("isActive") Integer isActive,
                                                          @Param("page") Integer page,
                                                          @Param("size") Integer size);
    int addProcess(Process process);

    Process queryProcessByProcessCode(@Param("processCode") String processCode);

    int updateProcessById(Process process);

    int deleteProcessById(Integer id);


}
